import { DefaultLayout } from '@/layout'
import type { Route } from '@/layout/components'

export default {
  path: '/jindouLife',
  name: 'JindouLife',
  component: DefaultLayout,
  redirect: '/jindouLife/jdlGoodsManage',
  meta: {
    title: '金豆惠生活',
    icon: 'menu-life',
    roles: ['金豆惠生活'],
    alwaysShow: true,
    sort: 7
  },
  children: [
    {
      path: 'jdlGoodsManage',
      name: 'JdlGoodsManage',
      component: () => import('@/views/jindouLife/jdlGoodsManage'),
      meta: { title: '商品管理', roles: ['惠生活商品管理'] }
    },
    {
      path: 'jdlSiteManage',
      name: 'JdlSiteManage',
      component: () => import('@/views/jindouLife/jdlSiteManage'),
      meta: { title: '站点管理', roles: ['站点管理'] }
    },
    {
      path: 'jdlOrderManage',
      name: 'JdlOrderManage',
      component: () => import('@/views/jindouLife/jdlOrderManage'),
      meta: { title: '订单管理', roles: ['惠生活订单管理'] }
    }
  ]
} as Route
